package com.jiyun.controller;

import com.jiyun.pojo.Cpxx;
import com.jiyun.service.CpxxService;
import com.jiyun.vo.R;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("cpxx")
@CrossOrigin
public class CpxxController {

    @Resource
    private CpxxService cpxxService;


    @RequestMapping("add")
    public R add(@RequestBody Cpxx cpxx) {
        return R.success(cpxxService.add(cpxx));
    }

}
